<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>订单页</title>
	<link rel="stylesheet" type="text/less" href="http://localhost/shop/Template/default/style/main.less" />
	<link rel="stylesheet" href="http://localhost/shop/Template/default/style/bootstrap.min.css" />
	<link rel="stylesheet" href="http://localhost/shop/Template/default/style/font-awesome.min.css">
	<script type="text/javascript" src="http://localhost/shop/Template/default/js/less-1.7.5.min.js"></script>
	<script type="text/javascript" src="http://localhost/shop/Template/default/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="http://localhost/shop/Template/default/js/main.js"></script>
	<script type='text/javascript' src='http://localhost/shop/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/shop/hdphp/Extend/Org/hdjs/hdui/css/hdui.css' rel='stylesheet' media='screen'>
<script src='http://localhost/shop/hdphp/Extend/Org/hdjs/hdui/js/hdui.js'></script>
<link href='http://localhost/shop/hdphp/Extend/Org/hdjs/hdvalidate/css/hdvalidate.css' rel='stylesheet' media='screen'>
<script src='http://localhost/shop/hdphp/Extend/Org/hdjs/hdvalidate/js/hdvalidate.js'></script>
<script src='http://localhost/shop/hdphp/Extend/Org/cal/lhgcalendar.min.js'></script>
<script src='http://localhost/shop/hdphp/Extend/Org/hdjs/hdslide/js/hdslide.js'></script>
<script type='text/javascript'>
HOST = 'http://localhost';
ROOT = 'http://localhost/shop';
WEB = 'http://localhost/shop/index.php';
URL = 'http://localhost/shop/index.php/Index/Order/index';
APP = 'http://localhost/shop/Application';
COMMON = 'http://localhost/shop/Application/Common';
HDPHP = 'http://localhost/shop/hdphp';
HDPHPDATA = 'http://localhost/shop/hdphp/Data';
HDPHPEXTEND = 'http://localhost/shop/hdphp/Extend';
MODULE = 'http://localhost/shop/index.php/Index';
CONTROLLER = 'http://localhost/shop/index.php/Index/Order';
ACTION = 'http://localhost/shop/index.php/Index/Order/index';
STATIC = 'http://localhost/shop/Static';
HDPHPTPL = 'http://localhost/shop/hdphp/Lib/Tpl';
VIEW = 'http://localhost/shop/Application/Index/View';
PUBLIC = 'http://localhost/shop/Application/Index/View/Public';
CONTROLLERVIEW = 'http://localhost/shop/Application/Index/View/Order';
HISTORY = 'http://localhost/shop/index.php/Index/Cart/index';
TEMPLATE = 'http://localhost/shop/Template/default';
</script>
</head>
<body>
<!-- 头部开始 -->
<div id="top" style="margin-bottom: 120px;">
	<div class="nav">
		<div class="left">
			<a href="">小米网</a>
			<span>|</span>
			<a href="">MIUI</a>
			<span>|</span>
			<a href="">米聊</a>
			<span>|</span>
			<a href="">游戏</a>
			<span>|</span>
			<a href="">多看阅读</a>
			<span>|</span>
			<a href="">云服务</a>
			<span>|</span>
			<a href="">小米网移动版</a>
		</div>
		<div class="right">
			<?php if($_SESSION["u_username"]){?>
				<a href="javascript:;">欢迎回来!</a>
				<span></span>
				<a href="<?php echo U('Login/index');?>"><?php echo $_SESSION["u_username"] ?></a>
				<span>|</span>
				<a href="<?php echo U('Menber/index');?>">个人中心</a>
				<span>|</span>
				<a href="<?php echo U('Login/out');?>">退出</a>
			
			<?php  }else{ ?>
				<a href="<?php echo U('Login/index');?>">登录</a>
				<span>|</span>
				<a href="<?php echo U('Register/index');?>">注册</a>
			<?php }?>
		</div>
	</div>
	<div class="logo">
		<a href="http://localhost/shop"><img src="http://localhost/shop/Template/default/images/logo.png" alt="" /></a>
	</div>
</div>
<!-- 头部结束 -->
<!-- 购物车开始 -->
<div id="order" >
	<form action="<?php echo U('Order/add');?>" method="post">
		<div class="list">
			<h2>收货地址</h2>
			<div class="check">
				<div class="addr">
					<h3>马志斌</h3>
					<p>15111076943</p>
					<p>湖南 长沙市 雨花区万家丽路西子一间A栋13楼1308(410000)</p>
					<p class="is_addr" value=''></p>
				</div>
				<div class="addr">
					<a href="<?php echo U('Menber/addr');?>">修改收货地址</a>
				</div>
			</div>
		</div>
		<div class="list">
			<h2>支付方式</h2>
			<div class="check">
				<ul class="check">
					<li>
						<input type="radio" value="0" name="pay_type" checked="">
						<p>在线支付</p>
					</li>
					<li>
						<input type="radio" value="1" name="pay_type" checked="">
						<p>货到付款</p>
					</li>
					<p class="is_pay" value=''></p>	
				</ul>
				
			</div>
		</div>
		<div class="list">
			<h2>发票信息</h2>
				<ul class="check">
					<li>
						<input type="radio" value="0" name="is_bill" checked="">
						<p>不开发票</p>
					</li>
					<li>
						<input type="radio" value="1" name="is_bill"checked="">
						<p>需要发票</p>
					</li>
					<p class="is_bill" value=''></p>	
				</ul>	
		</div>
		<div class="list">
			<h2>确认商品</h2>
			<table>
				<tr>
					<td width="800px" style="text-align:left;">商品</td>
					<td width="100px">单价</td>
					<td width="200px">数量</td>
					<td width="100px">小计</td>
				</tr>
				<?php if(is_array($cartData[goods])){?><?php  foreach($cartData[goods] as $k=>$v){ ?>
					<tr>
						<td style="text-align:left;">
							<div class="goods">
								<img src="http://localhost/shop/<?php echo $v['options']['pic'];?>" alt="" width="50" />
								<h3><?php echo $v['name'];?></h3>
								<p></p>
							</div>
						</td>
						<td><?php echo $v['price'];?>元</td>
						<td>
							<div style="margin: 0 auto;width:155px;">
								<p><?php echo $v['num'];?></p>
							</div>
						</td>
						<td class="<?php echo $k;?>"><?php echo $v['total'];?>元</td>
					</tr>
				<?php }}?>
			</table>
		</div>
		<div class="list">
			<h2>备注说明</h2>
			<textarea name="remark" ></textarea>	
		</div>
		<div class="total_out">
			<p class="total">商品总计: <span><?php echo $cartData['total'];?>元</span></p>
			<p class="total">商品件数：<span><?php echo $cartData['total_rows'];?>件</span></p>
		</div>
		<div class="total_out">
			<p class="next">
				<a class="continue" href="<?php echo U('Cart/index');?>">返回购物车</a>
				<input type="button" class="btn"  value="立即下单" />
			</p>
		</div>
	</form>
</div>
<!-- 购物车结束 -->
<!-- // 服务样式开始 -->
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><div id="footer">
	<ul class="serve">
		<li>
			<a href="">
				<i class="fa fa-wrench fa-2x"></i>
				<span>1小时快修服务</span>
			</a>
		</li>
		<li>
			<a href="">
				<i class="fa fa-history fa-2x"></i>
				<span>7天无理由退货</span>
			</a>
		</li>
		<li>
			<a href="">
				<i class="fa fa-refresh fa-2x"></i>
				<span>15天免费换货</span>
			</a>
		</li>
		<li>
			<a href="">
				<i class="fa fa-gift fa-2x"></i>
				<span>满150元包邮</span>
			</a>
		</li>
		<li>
			<a href="">
				<i class="fa fa-phone-square fa-2x"></i>
				<span>460余家售后网点</span>
			</a>
		</li>
	</ul>
	<div class="other">
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<div class="phone">
			<p class="phones">400-100-5678</p>
			<p class="time">国庆假期 9:00 - 18:00 </p>
			<p class="data">（10月1日 - 7日）</p>
			<a class="hours">24不时在线客服</a>
		</div>
	</div>
	<p class="copyright">©mi.com 京ICP证110507号 京ICP备10046444号 京公网安备1101080212535号 京网文[2014]0059-0009号</p>
</div>
<!-- // 服务样式结束 -->
</body>
</html>